{extend name="layout/common_layout" /}
{block name="body"}
    <!--tab标签-->
    <div class="layui-tab layui-tab-brief">
        <ul class="layui-tab-title">
            <li class=""><a href="{:url('admin/drawing/index')}">提现管理</a></li>
            <li class="layui-this">提现详情</li>
        </ul>
        <div class="layui-tab-content">
            <div class="layui-tab-item layui-show">
                <form class="layui-form form-container">
                    <div class="layui-form-item">
                        <label class="layui-form-label">账号</label>
                        <div class="layui-input-block">
                            <input type="text" value="{$detail.u_email}"    class="layui-input" disabled="disabled">
                        </div>
                    </div>

                    <div class="layui-form-item">
                        <label class="layui-form-label">提现类型</label>
                        <div class="layui-input-block">
                            {if condition="$detail['d_type'] eq 1"}
                            <input type="text"  value="支付宝" class="layui-input" disabled="disabled">
                            {else /}
                            <input type="text"  value="银行卡" class="layui-input" disabled="disabled">
                            {/if}
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">提现金额（人民币）</label>
                        <div class="layui-input-block">
                            <input type="text" style="color: #0BB20C" value="{$detail.d_money_rmb}"  class="layui-input" disabled="disabled">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">提现金额（美元）</label>
                        <div class="layui-input-block">
                            <input type="text" style="color: red" value="{$detail.d_money_dollar}"   class="layui-input" disabled="disabled">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">提现状态</label>
                        <div class="layui-input-block">
                            {if condition="$detail['d_status'] eq 1"}
                            <input type="text"  value="待打款" class="layui-input" disabled="disabled">
                            {/if}
                            {if condition="$detail['d_status'] eq 2"}
                            <input type="text"  value="确认打款" class="layui-input" disabled="disabled">
                            {/if}
                            {if condition="$detail['d_status'] eq 3"}
                            <input type="text"  value="拒绝打款" class="layui-input" disabled="disabled">
                            {/if}
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">提现说明</label>
                        <div class="layui-input-block">
                            <textarea  cols="95" rows="5" disabled="disabled">{$detail.d_remark}</textarea>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">提现账号详情</label>
                        {if condition="$detail.d_type == 1"}
                            <div class="layui-input-block">
                                <textarea  cols="95" rows="5" disabled="disabled">支付宝账号：{$detail.u_alipay}</textarea>
                            </div>
                        {/if}
                        {if condition="$detail.d_type == 2"}
                            <div class="layui-input-block">
                                <textarea  cols="95" rows="5" disabled="disabled">
                                    银行：{if condition="$detail.u_bank_type == 1"}工商银行{/if}
                                    {if condition="$detail.u_bank_type == 2"}农业银行{/if}
                                    {if condition="$detail.u_bank_type == 3"}中国银行{/if}
                                    {if condition="$detail.u_bank_type == 4"}建设银行{/if}
                                    {if condition="$detail.u_bank_type == 5"}交通银行{/if}

                                    卡号：{$detail.u_bank_card_code}

                                    银行预留姓名：{$detail.u_name_bank}

                                    银行预留手机号：{$detail.u_bank_phone}
                                </textarea>
                            </div>
                        {/if}
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">提现时间</label>
                        <div class="layui-input-block">
                            <input type="text" value="{$detail.d_create_time}"   class="layui-input" disabled="disabled">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">修改时间</label>
                        <div class="layui-input-block">
                            <input type="text" value="{$detail.d_update_time}"   class="layui-input" disabled="disabled">
                        </div>
                    </div>
                    <!--订单ID-->
                    <input type="hidden" id="d_id" value="{$detail.d_id}">
                    <div class="layui-form-item">
                        <div class="layui-input-block">
                            {if condition="$detail['d_status'] eq 1"}
                                <a href="{:url('admin/drawing/update',['d_id'=>$detail['d_id'],'d_uid'=>$detail['d_uid'],'d_money_dollar'=>$detail['d_money_dollar'],'d_status' => 2])}" class="layui-btn layui-btn-normal layui-btn-mini ajax-confim">确认</a>
                                <a href="{:url('admin/drawing/update',['d_id'=>$detail['d_id'],'d_uid'=>$detail['d_uid'],'d_money_dollar'=>$detail['d_money_dollar'],'d_status' => 3])}" class="layui-btn layui-btn-danger layui-btn-mini ajax-confim">拒绝</a>
                            {/if}
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
{/block}
{block name="js"}
<!--<script src="__JS__/kindeditor/kindeditor.config.js"></script>-->
<!--<script src="__JS__/kindeditor/kindeditor-all-min.js"></script>-->
<script src="__JS__/ueditor/ueditor.config.js"></script>
<script src="__JS__/ueditor/ueditor.all.min.js"></script>
{/block}
{block name="script"}
<script>
</script>
{/block}